package com.offcn.service;

import com.offcn.entity.User;
import com.offcn.utils.PageTool;

import java.util.List;

public interface UserService {
    List<User> findAllUser(PageTool page, String search);

    int countUser(String search);

    int addUser(User user);

    User login(User user);

    int delAll(String arr);

    int updateUser(User user);

    List<User> findByname(String search);

    User findByUid(int uid);

    User findByPhone(String phone);

    int regist(String name, String phone, String password);
}
